home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Over 1,000 Windows 95 Programs
/
Over 1000 Windows 95 Programs (Microforum) (Disc 1).iso
/
1468
/
clock24.frm
< prev
next >
Wrap
Text File
|
1996-07-19
|
3KB
|
115 lines
VERSION 4.00
Begin VB.Form Clock24
BorderStyle = 3 'Fixed Dialog
Caption = "24 Hour Clock"
ClientHeight = 1500
ClientLeft = 3750
ClientTop = 5490
ClientWidth = 2685
Height = 1905
Icon = "Clock24.frx":0000
Left = 3690
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1500
ScaleWidth = 2685
ShowInTaskbar = 0 'False
Top = 5145
Width = 2805
Begin VB.CheckBox Check1
Caption = "Show unlit segments"
Height = 300
Left = 120
TabIndex = 1
Top = 1140
Width = 1875
End
Begin VB.CommandButton cmdForeColor
Caption = "ForeColor"
Height = 315
Left = 1500
TabIndex = 2
Top = 120
Width = 1095
End
Begin VB.CommandButton cmdBackColor
Caption = "BackColor"
Height = 315
Left = 1500
TabIndex = 3
Top = 480
Width = 1095
End
Begin VB.CheckBox chkBlinkColon
Caption = "Blink colon"
Height = 300
Left = 120
TabIndex = 0
Top = 840
Value = 1 'Checked
Width = 1215
End
Begin VB.Timer Timer1
Interval = 500
Left = 2220
Top = 960
End
Begin VB.PictureBox picLCD
Height = 435
Left = 120
ScaleHeight = 375
ScaleWidth = 1215
TabIndex = 4
Top = 180
Width = 1275
End
End
Attribute VB_Name = "Clock24"
Attribute VB_Creatable = False
Attribute VB_Exposed = False
Option Explicit
Dim moLCD As New CLCD
Private Sub Form_Load()
With moLCD
.Alignment = gnCENTER
.BlinkColon = True
.ForeColor = vbYellow
Set .Container = picLCD
End With
Timer1_Timer
End Sub
Private Sub Form_Unload(Cancel As Integer)
Set moLCD = Nothing
Set Clock24 = Nothing
End Sub
Private Sub Timer1_Timer()
moLCD.Caption = Format$(Now, "hh:mm")
End Sub
Private Sub chkBlinkColon_Click()
moLCD.BlinkColon = Not moLCD.BlinkColon
End Sub
Private Sub cmdForeColor_Click()
moLCD.SelectForeColor
End Sub
Private Sub cmdBackColor_Click()
moLCD.SelectBackColor
End Sub
Private Sub Check1_Click()
moLCD.ShowUnlitSegments = Not moLCD.ShowUnlitSegments
End Sub